package com.hzbank.juc.introduction;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: libugu@cskaoyan.com
 * @date 2023/12/18 - 14:01
 */
@Slf4j
public class Thread02 {

    public static void main(String[] args) {

        Runnable runnable = ()->{
                int a = 10;
                int b =90;
                int c =a + b;
            String s = Integer.toString(c);
            log.debug(s);
        };

        Thread thread = new Thread(runnable,"我是一个计算器线程");
        thread.start();
    }

}
